package org.skywalker.postbank

class User {
	String name
	String password
	String role
    static constraints = {
		name(blank:false, nullable:false, unique:true)
		password(blank:false, nullable:false, password:true)
		role(nullable:false, inList:['Boss', 'Operator', 'Admin'])
    }
	static belongsTo = [region:Region]
	
	String toString(){
		name
	}
}